<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>功能表达式对象</title>
</head>
<body>
<div th:text="${#request.getAttribute('time')}"></div>
<div th:text="${#dates.format(time,'yyyy-MM-dd HH:mm:ss')}" style="color: cornflowerblue"></div>
<div th:text="${#strings.substring(data,0,6)}" style="color: red"></div>
</body>
</html>